package com.mop.core.es.api.annotation;

import java.lang.annotation.*;

/**
 * @author lemon
 * @ClassName ESField
 * @desc
 * @Date 2018/12/19 12:42
 * @Version 1.0
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ESField {

    /**
     * <p>
     * 实体字段在es的字段名
     * </p>
     */
    String column() default "";

    /**
     * <p>
     * 实体字段在es的字段类型
     * </p>
     */
    String type() default  "";
}
